package cn.com.idmy.mq.coder;


import jakarta.annotation.Nullable;

public interface MqMsgEncoder {
    @Nullable
    byte[] encode(Object body);

    @Nullable
    String encodeString(Object body);
}
